package sorting;

public class Interval
{
	private float begin;
	private float end;
	
	public Interval(float begin, float end) {
		this.setBegin(begin);
		this.setEnd(end);
	}
	
	public Interval() {
	}

	public void setBegin(float begin) {
		this.begin = begin;
	}

	public void setEnd(float end) {
		this.end = end;
	}
	
	public float getBegin() {
		return begin;
	}
	
	public float getEnd() {
		return end;
	}
	
	@Override
	public String toString() {
		return "(" + getBegin() + ", " + getEnd() + ")";
	}
}
